package com.ziqing.apeletnews.retrofit;

;
import com.ziqing.apeletnews.bean.UserModel;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by ywh on 2018/5/1.
 */

public interface NewApiService {

    /**
     * 验证码验证业务员登录或注册
     *
     * @param code  code	varchar	Y		手机短信验证码
     * @param phone phone	varchar	Y		手机号码
     */
    @GET("login")
    Observable<HttpResult<UserModel>> doLogin(@Query("phone") String phone, @Query("password") String password);
}
